﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NopSolutions.NopCommerce.LuceneHelper.Tasks;

namespace NopSolutions.NopCommerce.Web.Administration
{
    public partial class Lucene : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnIndexCatalog_Click(object sender, EventArgs e)
        {
            NopSolutions.NopCommerce.LuceneHelper.LuceneContext.Instance.AddTask(new ProductsUpdateTask(true));
            NopSolutions.NopCommerce.LuceneHelper.LuceneContext.Instance.AddTask(new SpecificationOptionsUpdateTask(true));
            NopSolutions.NopCommerce.LuceneHelper.LuceneContext.Instance.AddTask(new SpecificationsUpdateTask(true, true));
        }
    }
}